package pattern.structrual.bridge;

/**
 * 将抽象与实现分离开来，使它们可以独立变化。
 *
 * @Author Gavin
 * @date 2020.07.17 11:48
 */
public class test {
    public static void main(String[] args) {
        RemoteControl remoteControl1 = new ConcreteRemoteControl1(new RCA());
        remoteControl1.on();
        remoteControl1.off();
        remoteControl1.tuneChannel();
        RemoteControl remoteControl2 = new ConcreteRemoteControl2(new Sony());
        remoteControl2.on();
        remoteControl2.off();
        remoteControl2.tuneChannel();
    }
}
